package cn.zhoujing.security.demo.service.impl;

import cn.zhoujing.security.demo.bo.RolePermissionUriAndCodeBO;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.zhoujing.security.demo.entity.RolePermissionLink;
import cn.zhoujing.security.demo.service.RolePermissionLinkService;
import cn.zhoujing.security.demo.mapper.RolePermissionLinkMapper;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
* @author JingZhou
* @description 针对表【role_permission_link】的数据库操作Service实现
* @createDate 2024-02-12 22:51:55
*/
@Service
public class RolePermissionLinkServiceImpl extends ServiceImpl<RolePermissionLinkMapper, RolePermissionLink>
    implements RolePermissionLinkService{

    /**
     * 获取已启用的权限uri和对应角色code
     * @return uri和对应的角色code
     */
    @Override
    public List<RolePermissionUriAndCodeBO> getUriAndRoleCodes() {
        return baseMapper.selectUriAndRoleCodes();
    }
}




